//
//  User.m
//  iOS
//
//  Created by gongkai on 15/1/20.
//  Copyright (c) 2015年 mokai. All rights reserved.
//

#import "User.h"

@implementation User
@synthesize uname;
@synthesize pwd;


-(void)loginWithUname:(NSString *)_uname pwd:(NSString *)_pwd ok:(HttpOKBlock)ok no:(HttpNOBlock)no{
    self.api = api_user_login;
    self.params = @{@"account":_uname,@"passwd":[_pwd MD5]};
    self.ok = ok;
    self.no = no;
    [self request];
}

@end
